package tw.edu.tku.im.maze;

import java.io.BufferedReader;
import java.io.IOException;

import org.json.JSONException;
import org.json.JSONObject;

public class AddRoomDeliverer extends PacketDeliverer {

   @Override
   AddRoomRep receive(BufferedReader in) throws IOException, JSONException {
      final JSONObject json = new JSONObject(in.readLine());
      return AddRoomRepParser.INSTANCE.parse(json);
   }
   
}
